#include "global.h"

namespace sangame {
namespace history {

void Global::SetCoreManager( ICoreManager* core_manager_ptr )
{
    core_manager_ptr_ = core_manager_ptr;
}

void Global::SetResourceManager( IResourceManager* resource_manager_ptr )
{
    resource_manager_ptr_ = resource_manager_ptr;
}

Global::ICoreManager* Global::GetCoreManager()
{
    return core_manager_ptr_;
}

IResourceManager* Global::GetResourceManager()
{
    return resource_manager_ptr_;
}

void Global::SetMainFrameHandle( Handle handle )
{
    main_frame_handle_ = handle;
}

Handle Global::GetMainFrameHandle()
{
    return main_frame_handle_;
}

Global* GetGlobal()
{
    return Global::Instance();
}

}
}